<%--
    Document   : AdmonModPost
    Created on : 30-may-2009, 11:09:57
    Author     : thanent
--%>
<jsp:include page="../Apariencia/Cabecera.jsp"/>

<%@page contentType="text/html" pageEncoding="UTF-8" import="Funcionalidad.*, java.util.*,java.net.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<%

        if (session.getAttribute("loginuser") != null) {
            int rol = (Integer) session.getAttribute("loginrol");
            if (rol == 1) {
%>
<html>
    <head>
        <title>FLOG - Administraci&oacute;n Crea Post</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <div id="administracion" class="admonCreaPost">
        <body>
            <h1>Nueva entrada</h1>
            <table align=center>
                <form method="post" action="CreaPost.jsp" enctype="application/x-www-form-urlencoded">
                    <tr>
                        <th></th>
                    </tr>
                    <tr>
                        <td><h4>Titulo</h4></td>
                        <td><input type="text" name="titulo" size="107"></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td><textarea name="texto" rows="30" cols="80"></textarea></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td><input type="submit" name="nuevaEntrada" value="Publicar"></td>
                        <td><input type="reset" name="restablecer" value="Restablecer"></td>
                    </tr>

                </form>

            </table>

        </body>
    </div>
</html>

<%            } else {
                response.sendRedirect("../Apariencia/VistaPost.jsp");
            }
        }
%>
